package blackhouse.advanced.pipedstreamTest;

import java.io.IOException;
import java.io.PipedInputStream;
import java.io.PipedOutputStream;

public class PipedStreamTest
{
 
	public static void main(String[] args) throws IOException
	{
	  Sender t1 = new Sender();
	  Receiver t2 = new Receiver();
	  
	  PipedOutputStream out = t1.getOutputStream();
	  PipedInputStream in = t2.getInputStream();
	  
	  out.connect(in);
	  t1.start();
	  t2.start();
	}

}
